<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>    
    
    <div id="app">       
        <book>
            <div>三国演义</div>
        </book>
    </div>

    <script src="./js/vue.global.js"></script>

    <script>

        let book = {     
            props:['type'],
            template:`
                <div>
                    <hr/>
                    <slot>
                        <div>没有书籍</div>
                    </slot>
                    <hr/>
                </div>   
            `,
           
        }
       
        let app = Vue.createApp({
            components:{
                book
            },
            data(){
                return {
                    
                }
            }                     
        });       
      
        app.mount("#app");

    </script>
</body>
</html>